﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.OleDb;

/// <summary>
///DBOp 的摘要说明
/// </summary>
public class DBOp
{
	public static OleDbConnection DbConn
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
        get{
        OleDbConnection dbconn = new OleDbConnection();
        string path = HttpContext.Current.Request.PhysicalApplicationPath;
        dbconn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + "\\mdb.mdb";
        dbconn.Open();
        return dbconn;
        }
	}    
}
